package com.yaoxun.bored.model.sys.dict;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

@Table(name="b_dict")
public class Dict implements Serializable {

	private static final long serialVersionUID = -6642415504488714243L;
	
	@Column(name="dict_id")
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer dictId;
	
	@Column(name="dict_info")
	@NotEmpty(message="请填写字典说明")
	@Size(max=100, message="字典说明不允许超过{max}")
	private String dictInfo;
	
	@Column(name="dict_code")
	@Size(max=45, message="字典码不允许超过{max}")
	private String dictCode;
	
	@Size(max=255, message="备注不允许超过{max}")
	private String remark = "";
	
	@Column(name="create_time")
	private Date createTime;
	
	@Column(name="create_id")
	private Integer createId;
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getDictId() {
		return dictId;
	}

	public void setDictId(Integer dictId) {
		this.dictId = dictId;
	}

	public String getDictInfo() {
		return dictInfo;
	}

	public void setDictInfo(String dictInfo) {
		this.dictInfo = dictInfo;
	}

	public String getDictCode() {
		return dictCode;
	}

	public void setDictCode(String dictCode) {
		this.dictCode = dictCode;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	@Override
	public String toString() {
		return "Dict [dictId=" + dictId + ", dictInfo=" + dictInfo + ", dictCode=" + dictCode + ", remark=" + remark
				+ ", createTime=" + createTime + ", createId=" + createId + "]";
	}
	
}
